package com.example.tests;

import static org.hamcrest.MatcherAssert.*;
import static org.hamcrest.Matchers.*;
import org.testng.annotations.Test;
import com.example.fw.Folders;

public class TestFolderDeletion extends TestBase {
	
	@Test
	public void testDefaultFolderDeletion() {
		String folder = "Persons";
		Folders oldFolders = app.getFolderHelper().getFolders();
		app.getFolderHelper().deleteFolder(folder);
		Folders newFolders = app.getFolderHelper().getFolders();
		assertThat(newFolders, equalTo(oldFolders.without(folder)));		
	}
}
